package com.rk.kbk.dao;

import com.rk.kbk.model.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @AdminDao
 * @管理员Dao
 * @version : Ver 1.0
 */
public interface AdminDao extends JpaRepository<Admin, Long>,JpaSpecificationExecutor {

    Admin findOneByUserName(String username);

    Admin findOneByUserNameAndPassword(String username, String password);

    Admin findOneByUserNameAndIdNot(String username, Long id);

}
